!function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(a,n,function(t){return e[t]}.bind(null,n));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=52)}({"48yh":function(e,t){/*!Lazy Load 1.9.7 - MIT license - Copyright 2010-2015 Mika Tuupola*/!function(e,t,i,a){var n=e(t);e.fn.lazyload=function(o){function l(){var t=0;s.each(function(){var i=e(this);if(!c.skip_invisible||i.is(":visible"))if(e.abovethetop(this,c)||e.leftofbegin(this,c));else if(e.belowthefold(this,c)||e.rightoffold(this,c)){if(++t>c.failure_limit)return!1}else i.trigger("appear"),t=0})}var r,s=this,c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return o&&(a!==o.failurelimit&&(o.failure_limit=o.failurelimit,delete o.failurelimit),a!==o.effectspeed&&(o.effect_speed=o.effectspeed,delete o.effectspeed),e.extend(c,o)),r=c.container===a||c.container===t?n:e(c.container),0===c.event.indexOf("scroll")&&r.bind(c.event,function(){return l()}),this.each(function(){var t=this,i=e(t);t.loaded=!1,(i.attr("src")===a||!1===i.attr("src"))&&i.is("img")&&i.attr("src",c.placeholder),i.one("appear",function(){if(!this.loaded){if(c.appear){var a=s.length;c.appear.call(t,a,c)}e("").bind("load",function(){var a=i.attr("data-"+c.data_attribute);i.hide(),i.is("img")?i.attr("src",a):i.css("background-image","url('"+a+"')"),i[c.effect](c.effect_speed),t.loaded=!0;var n=e.grep(s,function(e){return!e.loaded});if(s=e(n),c.load){var o=s.length;c.load.call(t,o,c)}}).attr("src",i.attr("data-"+c.data_attribute))}}),0!==c.event.indexOf("scroll")&&i.bind(c.event,function(){t.loaded||i.trigger("appear")})}),n.bind("resize",function(){l()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&n.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&s.each(function(){e(this).trigger("appear")})}),e(i).ready(function(){l()}),this},e.belowthefold=function(i,o){return(o.container===a||o.container===t?(t.innerHeight?t.innerHeight:n.height())+n.scrollTop():e(o.container).offset().top+e(o.container).height())<=e(i).offset().top-o.threshold},e.rightoffold=function(i,o){return(o.container===a||o.container===t?n.width()+n.scrollLeft():e(o.container).offset().left+e(o.container).width())<=e(i).offset().left-o.threshold},e.abovethetop=function(i,o){return(o.container===a||o.container===t?n.scrollTop():e(o.container).offset().top)>=e(i).offset().top+o.threshold+e(i).height()},e.leftofbegin=function(i,o){return(o.container===a||o.container===t?n.scrollLeft():e(o.container).offset().left)>=e(i).offset().left+o.threshold+e(i).width()},e.inviewport=function(t,i){return!(e.rightoffold(t,i)||e.leftofbegin(t,i)||e.belowthefold(t,i)||e.abovethetop(t,i))},e.extend(e.expr[":"],{"below-the-fold":function(t){return e.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return e.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!e.rightoffold(t,{threshold:0})},"in-viewport":function(t){return e.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!e.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return e.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!e.rightoffold(t,{threshold:0})}})}(jQuery,window,document)},52:function(e,t,i){i("48yh"),i("lRu2"),e.exports=i("Pvvi")},CNqx:function(e,t){e.exports=_},Pvvi:function(e,t,i){(function(e){$(function(){History.options.disableSuid=!0;var t=Modernizr.history?"":"!",i=new Router.default,a=$("
").addClass("gamehall_loader_wrapper").append($("
").addClass("gamehall_loader_ab"));function n(){$("img.lazy").lazyload({threshold:200})}function o(e){return l(e.url,!1),$(".js-ajax-content").remove(),$("div.gamehall_content_wrapper").append(a),$.ajax({url:e.url,type:"GET",data:{block_to_render:e.block}}).then(function(t){var i=t[e.block];$("div.gamehall_content_wrapper").empty().append(i),$prelodader=$("#content_preloader"),$prelodader.hide(),l(e.url,!0),n(),$(window).trigger("ajax_page_load")})}function l(e,t){var i;(i=$("div.gamehall_navigation li,div.gamehall_filters li").removeClass("active gamehall-navigation__item--active").find('a[href="'+e+'"]').closest("li")).addClass("active gamehall-navigation__item--active"),0!==i.length||/(help|jackpot|search)/.test(e)||$('div.gamehall_navigation li:has(a[href="/gamehall/popular"])').addClass("active gamehall-navigation__item--active"),/gamehall\/slots/.test(e)?($('.gamehall_navigation_item a[href="/gamehall/slots/provider"]').closest("li").addClass("active gamehall-navigation__item--active"),$(".gamehall_filters_wrapper").removeClass("hidden")):$(".gamehall_filters_wrapper").addClass("hidden"),$(".gamehall_filters_lists").addClass("hidden").filter('[data-uri="'+e+'"]').removeClass("hidden"),$(".gamehall_filters_lists li").toggleClass("disabled",!t),$.cookie("last_gamehall_page",e+window.location.search,{path:"/"})}i.map(function(e){e("/gamehall").to("index"),e("/gamehall/:filter").to("games_filter"),e("/gamehall/slots/:filter").to("slots_filter")});var r={index:{model:function(e){return o({url:"/gamehall",block:"template-1"})}},games_filter:{model:function(e){return o({url:"/gamehall/"+e.filter,block:"template-1"})}},slots_filter:{model:function(e){return o({url:"/gamehall/slots/"+e.filter,block:"template-2"})}}};i.getHandler=function(e){return r[e]},i.updateURL=function(e){History.pushState(null,document.title,e)},History.Adapter.bind(window,"statechange",function(){var e=History.getState().hash;-1!=e.indexOf("!")&&(e=e.replace(/\/*!/g,"")),i.handleURL(e)}),$("div.gamehall_content").on("click",".js-menu-click",function(){var e=$(this).attr("href");return!e||("/"===window.location.pathname?i.handleURL(t+e):i.updateURL(t+e),!1)}),$("div.gamehall_content").on("click",".js-choose-gamehall-filter",function(){!function(e){var t,i=e.closest("li");if(i.is(".disabled"))return;if(i.hasClass("active"))return;i.toggleClass("active"),t=!!i.is(".active")&&i.find("a").data("id"),i.parent(".gamehall_filters_list").find("li").not(i).removeClass("active"),t?($(".gamehall_gamelist_filter_block").addClass("hidden"),$('.gamehall_gamelist_filter_block[data-id="'+t+'"]').removeClass("hidden")):$(".gamehall_gamelist_filter_block").removeClass("hidden");$(window).trigger("scroll")}($(this))}),-1!=History.getState().hash.indexOf("!")&&History.Adapter.trigger(window,"statechange"),$("div.gamehall_content").on("click",".js-open-highlow",function(){var e=screen.width/2-130,t=screen.height/2-215;if(!CONFIG_GLOBAL.isAuth){var i=void 0!==$(this).data("auth_popup")?$(this).data("auth_popup"):"go_auth";return $popupBuilder.show(i),!1}return window.open("/window/high_low","Больше-меньше","width=260, height=520, left="+e+", top="+t+", directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no"),!0});var s={cache:{},searchRequest:null,init:function(){$("div.gamehall_content").on("keyup",".gamehall_search_field",function(e){clearTimeout($.data(this,"timer")),13==e.keyCode?s.search($(this),!0):$(this).data("timer",setTimeout(s.search,100,$(this)))}).on("focus input",".gamehall_search_field",function(e){$(this).trigger("keyup")}).on("blur",".gamehall_search_field",function(e){e.relatedTarget&&"A"===e.relatedTarget.nodeName||$(".gamehall_search_result_list").hide()})},search:function(t,i){var a=$.trim(t.val()),n=t.next("ul");e.has(s,"gameTemplate")||(s.gameTemplate=e.template($("#gamehall-search-result-item-template").html()||"")),a.length?(i&&(window.location.href="/gamehall/search?search="+a),null!=s.searchRequest&&s.searchRequest.abort(),e.has(s.cache,a)?s.updateList(n,s.cache[a],a):(t.closest(".gamehall_search").addClass("loading"),s.searchRequest=$.ajax("/gamehall/search",{type:"GET",data:{search:a,type:"json"},dataType:"json",cache:!0}).done(function(e){e.results?(s.cache[a]=e,s.updateList(n,e,a)):n.hide(),t.closest(".gamehall_search").removeClass("loading")}))):n.hide()},updateList:function(t,i,a){t.html(""),i.results.length>0?(e.each(i.results.slice(0,10),function(a){t.append(s.gameTemplate({type:"game",name:i.games[a].name,link:e.has(i.games[a],"onclick")?"javascript:void(0)":i.games[a].url,onclick:i.games[a].onclick,img_url:i.games[a].img_url}))}),i.results.length>10&&t.append(s.gameTemplate({type:"all_games",query:a}))):t.append(s.gameTemplate({type:"not_found"})),t.show()}};n(),l(window.location.pathname,!0),s.init()})}).call(this,i("CNqx"))},lRu2:function(e,t){!function(){function e(){this.locks=[]}e.init=function(){var e=[];if($(".js-collection-lock").each(function(t,i){var a=$(i).data("collection");a&&e.push(a)}),this.locks=e,location.hash&&location.hash.length>1){var t=location.hash.slice(1),i=$("."+t);i.length&&$scroller.scrollToElem(i,500)}},e.unlock=function(e){this.locks.indexOf(e)>-1&&($(".js-collection-lock[data-collection="+e+"]").fadeOut(3e3,function(){$(this).closest(".not_available").removeClass("not_available"),$(this).remove()}),this.locks.splice(this.locks.indexOf(e),1))},window.Collections=e,$(function(){e.init(),$(window).on("load ajax_page_load",function(){e.init()})})}(),window.CollectionViewer=function(){function e(){this.items=[]}function t(e,t){var i=this.index={};$(e).each(function(){i[$(this).data(t)]=this})}return e.prototype.remove=function(e){var t=this.items.indexOf(e);t>-1&&this.items.splice(t,1)},e.prototype.add=function(e){this.has(e)||this.items.push(e)},e.prototype.has=function(e){return this.items.indexOf(e)>-1},e.prototype.isEmpty=function(){return!this.items.length},t.prototype.get=function(e){return this.index[e]},function(){var i=this,a=$(".js-view-collection"),n=null,o=new e,l=new t(".js-collection","sysname");$(document).on("click",".js-view-collection",function(){var e=$(this).data("sysname");i.show(e),o.remove(n),n=e,o.add(n),a.removeClass("viewed"),$(this).addClass("viewed"),i.check()}).on("mouseover",".js-view-collection",function(){var e=$(this).data("sysname");o.add(e),$(this).addClass("viewed"),i.check()}).on("mouseout",".js-view-collection",function(){var e=$(this).data("sysname");n!=e&&(o.remove(e),$(this).removeClass("viewed"),i.check())}).on("click",".js-view-collection .prev, .js-view-collection .next",function(){setTimeout($.proxy(i.check,i),500)}),this.check=function(){this.getVisible().filter(".viewed").length?$wrapper.addClass("hover_element"):$wrapper.removeClass("hover_element")},this.show=function(e){var t=$(l.get(e)).clone();$(".js-current-collection-placeholder").html(t),$(".collection_close").addClass("hide")},this.getVisible=function(){return $(".js-view-collection").slice(0,5)}}}(),$(function(){new CollectionViewer})}});